package com.aube.mis.controller;

import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(value = "/error")
public class ErrorController extends AbstractController {

	@RequestMapping("/index")
	public String index(ModelMap map, String errorMsg) {
		if(StringUtils.isEmpty(errorMsg)) {
			errorMsg = "系统异常";
		}
		map.put("errorMsg", errorMsg);
		return "/error/index";
	}
}
